package com.study.service;

import com.study.dao.ManagerDao;
import com.study.domain.Manager;
import com.study.domain.MyUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by think on 2016/7/30.
 */
@Service
public class ManagerService {
    @Resource
    private ManagerDao managerDao;

    public List<Manager> queryManagersList(){
        return managerDao.queryManagerList();
    }

    public int count(){
        return managerDao.count();
    }

    public void add(Manager manager){
        managerDao.addManager(manager);
    }

    public void update(Manager manager){
        managerDao.updateManager(manager);
    }

    public void delete(int id){
        managerDao.deleteManager(id);
    }
}
